package demo3;

public class Test {
    public static void main(String[] args) {
        // 圆圈 矩形 圆圈 画 矩形
        Shape shape[] = {new Cycle(), new Rect(), new Cycle(), new Rect(), new Flower(), new Triangle()};
        for(Shape shape1 : shape){
            shape1.draw();
        }
    }
}
